package day03_ThreadPool.URLEncoder_Decoder;

import java.net.URLDecoder;
import java.net.URLEncoder;

public class URLdemo {
    public static void main(String[] args) throws Exception{
        String wd="猪猪侠";

        String bianMa= URLEncoder.encode(wd,"UTF-8");
        System.out.println("编码后的搜索数据："+bianMa);

        String jieMa= URLDecoder.decode(bianMa,"UTF-8");
        System.out.println("解码后的搜索数据："+jieMa);
    }
}
